Understand the schema Algolia uses to index your Shopify data.
PREFIX_products
. The default prefix is shopify
.
Variants are stored as independent records.
For products without variants, the product attributes are first transformed into a schema that parallels the structure of the variant’s schema and then uploaded.
image
attribute uses the variant’s image if it exists,
otherwise it uses the first image of the associated product.
recently_ordered_count
attribute is reset during a full reindex.
Therefore, it’s a count of all orders since the last reindex, not since the beginning.
The recently_ordered_count
attribute is preserved during real-time indexing.vendor
attribute rank before results with a match in the title
attribute:
unordered(vendor)
unordered(title)
unordered(variant_title)
product_type
unordered(tags)
unordered(handle)
sku
barcode
unordered(body_html_safe)
algolia-ignore
in their list of tags[hidden]
in their titlealgolia-ignore
to the product’s list of tags[hidden]
to its title[hidden]
to the variant’s name.
The position of the string [hidden]
in the title doesn’t matter.
For example, if you want to hide a variant “blue” from the search results,
change its title to blue [hidden]
or [hidden] blue
.
PREFIX_collections
. The default prefix is shopify
.
The relationship between products and collections is stored in the product records,
in the collection_ids
and collections
attributes.
title
attribute rank before results with a match in the handle
attribute:
title
handle
unordered(body_html_safe)
[hidden]
in their title[hidden]
to the collection titlePREFIX_articles
.
The default prefix is shopify
.
title
attribute rank before results with a match in the handle
attribute:
title
handle
tags
blog.title
blog.handle
unordered(author.name)
unordered(body_html_safe)
algolia-ignore
to its list of tags[hidden]
to its title[hidden]
to the blog name.
PREFIX_pages
.
The default prefix is shopify
.
author
attribute rank before results with a match in the body_html
attribute:
author
body_html
title
[hidden]
to its title.
[hidden]
phrase on your page,
replace {{ page.title }}
with {{ page.title | replace: "[hidden]", "" }}
.
For more information, see replace